// pages/index/components/home-body.js
const computedBehavior = require('miniprogram-computed').behavior

import mock from '../../../mock/index'

Component({
  behaviors: [computedBehavior],

  /**
   * 组件的属性列表
   */
  properties: {
    category: { // 分类数据
			type: Object,
			value: {}
		},
		load: { // 是否加载
			type: Boolean,
			value: false
		},
  },

  /**
   * 组件的初始数据
   */
  data: {
    hasMore: true,
    products: mock.products,
    banners: mock.banners,
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
